package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import static org.jsola.hr.example.AttendGoOutRecordExample.E_COMPANY_ID;
import static org.jsola.hr.example.AttendGoOutRecordExample.E_COMPANY_NAME;
import static org.jsola.hr.example.AttendGoOutRecordExample.E_DAILY;
import static org.jsola.hr.example.AttendGoOutRecordExample.E_DEPT_ID;
import static org.jsola.hr.example.AttendGoOutRecordExample.E_DEPT_NAME;
import static org.jsola.hr.example.AttendGoOutRecordExample.E_EMP_INFO_ID;
import static org.jsola.hr.example.AttendGoOutRecordExample.E_EMP_INFO_NAME;
import static org.jsola.hr.example.AttendGoOutRecordExample.E_LATITUDE;
import static org.jsola.hr.example.AttendGoOutRecordExample.E_LOCATION;
import static org.jsola.hr.example.AttendGoOutRecordExample.E_LONGITUDE;
import static org.jsola.hr.example.AttendGoOutRecordExample.E_MONTHLY;
import static org.jsola.hr.example.AttendGoOutRecordExample.E_OUT_INSTRU;
import static org.jsola.hr.example.AttendGoOutRecordExample.E_PUNCH_TIME;
import static org.jsola.hr.example.AttendGoOutRecordExample.E_YEARLY;
import static org.jsola.hr.example.AttendGoOutRecordExample.M_COMPANY_ID_MAX;
import static org.jsola.hr.example.AttendGoOutRecordExample.M_COMPANY_NAME_MAX;
import static org.jsola.hr.example.AttendGoOutRecordExample.M_DAILY_MAX;
import static org.jsola.hr.example.AttendGoOutRecordExample.M_DEPT_ID_MAX;
import static org.jsola.hr.example.AttendGoOutRecordExample.M_DEPT_NAME_MAX;
import static org.jsola.hr.example.AttendGoOutRecordExample.M_EMP_INFO_ID_MAX;
import static org.jsola.hr.example.AttendGoOutRecordExample.M_EMP_INFO_NAME_MAX;
import static org.jsola.hr.example.AttendGoOutRecordExample.M_LATITUDE_MAX;
import static org.jsola.hr.example.AttendGoOutRecordExample.M_LOCATION_MAX;
import static org.jsola.hr.example.AttendGoOutRecordExample.M_LONGITUDE_MAX;
import static org.jsola.hr.example.AttendGoOutRecordExample.M_MONTHLY_MAX;
import static org.jsola.hr.example.AttendGoOutRecordExample.M_OUT_INSTRU_MAX;
import static org.jsola.hr.example.AttendGoOutRecordExample.M_PUNCH_TIME_MAX;
import static org.jsola.hr.example.AttendGoOutRecordExample.M_YEARLY_MAX;
import static org.jsola.hr.example.AttendGoOutRecordExample.N_COMPANY_ID;
import static org.jsola.hr.example.AttendGoOutRecordExample.N_COMPANY_NAME;
import static org.jsola.hr.example.AttendGoOutRecordExample.N_DAILY;
import static org.jsola.hr.example.AttendGoOutRecordExample.N_DEPT_ID;
import static org.jsola.hr.example.AttendGoOutRecordExample.N_DEPT_NAME;
import static org.jsola.hr.example.AttendGoOutRecordExample.N_EMP_INFO_ID;
import static org.jsola.hr.example.AttendGoOutRecordExample.N_EMP_INFO_NAME;
import static org.jsola.hr.example.AttendGoOutRecordExample.N_LATITUDE;
import static org.jsola.hr.example.AttendGoOutRecordExample.N_LOCATION;
import static org.jsola.hr.example.AttendGoOutRecordExample.N_LONGITUDE;
import static org.jsola.hr.example.AttendGoOutRecordExample.N_MONTHLY;
import static org.jsola.hr.example.AttendGoOutRecordExample.N_OUT_INSTRU;
import static org.jsola.hr.example.AttendGoOutRecordExample.N_PUNCH_TIME;
import static org.jsola.hr.example.AttendGoOutRecordExample.N_YEARLY;

/**
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "新增【外出打卡记录】的参数")
@Data
public class AttendGoOutRecordAddDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_COMPANY_ID, example = E_COMPANY_ID)
    @Length(max = 32, message = M_COMPANY_ID_MAX)
    private String companyId;

    @ApiModelProperty(notes = N_COMPANY_NAME, example = E_COMPANY_NAME)
    @Length(max = 100, message = M_COMPANY_NAME_MAX)
    private String companyName;

    @ApiModelProperty(notes = N_DEPT_ID, example = E_DEPT_ID)
    @Length(max = 32, message = M_DEPT_ID_MAX)
    private String deptId;

    @ApiModelProperty(notes = N_DEPT_NAME, example = E_DEPT_NAME)
    @Length(max = 100, message = M_DEPT_NAME_MAX)
    private String deptName;

    @ApiModelProperty(notes = N_EMP_INFO_ID, example = E_EMP_INFO_ID)
    @Length(max = 32, message = M_EMP_INFO_ID_MAX)
    private String empInfoId;

    @ApiModelProperty(notes = N_EMP_INFO_NAME, example = E_EMP_INFO_NAME)
    @Length(max = 50, message = M_EMP_INFO_NAME_MAX)
    private String empInfoName;

    @ApiModelProperty(notes = N_YEARLY, example = E_YEARLY)
    @Length(max = 10, message = M_YEARLY_MAX)
    private String yearly;

    @ApiModelProperty(notes = N_MONTHLY, example = E_MONTHLY)
    @Length(max = 10, message = M_MONTHLY_MAX)
    private String monthly;

    @ApiModelProperty(notes = N_DAILY, example = E_DAILY)
    @Length(max = 10, message = M_DAILY_MAX)
    private String daily;

    @ApiModelProperty(notes = N_PUNCH_TIME, example = E_PUNCH_TIME)
    @Length(max = 10, message = M_PUNCH_TIME_MAX)
    private String punchTime;

    @ApiModelProperty(notes = N_LONGITUDE, example = E_LONGITUDE)
    @Length(max = 100, message = M_LONGITUDE_MAX)
    private String longitude;

    @ApiModelProperty(notes = N_LATITUDE, example = E_LATITUDE)
    @Length(max = 100, message = M_LATITUDE_MAX)
    private String latitude;

    @ApiModelProperty(notes = N_LOCATION, example = E_LOCATION)
    @Length(max = 255, message = M_LOCATION_MAX)
    private String location;

    @ApiModelProperty(notes = N_OUT_INSTRU, example = E_OUT_INSTRU)
    @Length(max = 255, message = M_OUT_INSTRU_MAX)
    private String outInstru;


}

